<template>

    <div v-if="$route.query.orderId">
        <Detail></Detail>
    </div>
    <div v-else>
        <Allorder></Allorder>
    </div>

</template>

<script setup>
import { useRoute } from 'vue-router';
import Allorder from './Allorder/index.vue';
import Detail from './Detail/index.vue'
let $route = useRoute();
</script>

<style lang="scss" scoped></style>